package com.clt.ess.gjzw.domain.uploadRecordInfos;


import com.clt.ess.gjzw.domain.SealData;

import java.io.Serializable;

//上传备案信息接口请求业务参数中的data对象
public class UploadRecordInfosRequestData implements Serializable {
    //BASE64 编码的电子印章加密证书
    //必须
    private String sealEncCert;
    //BASE64 编码的电子印章签名证书
    //必须
    private String sealSignCert;
    //电子印章的备案数据，备案的数据内容见附录 B.1
    //必须
    private SealData sealData;
    //行政区划代码
    //必须
    private String districtCode;

    /**
     {
         "sealEncCert":"BASE64 编码的电子印章加密证书",
         "sealSignCert":" BASE64 编码的电子印章签名证书",
         "sealData":{
             "yzmc": "印章名称",
             "yzbm": "印章编码",
             "yzzzdwbm": "印章制作单位编码",
             "yzlxdm": "印章类型代码",
             "jbr_xm": "经办人姓名",
             "jbr_zjlx": "经办人证件类型",
             "jbr_zjhm": "经办人证件号码",
             "zzrq": "制作日期",
             "ymlx": "印模类型",
             "ymsj": "印模数据",
             "yzsydw_dwmc": "印章使用单位_单位名称",
             "yzsydw_dwssmzwzmc": "印章使用单位_单位少数民族文字名称",
             "yzsydw_dwywmc": "印章使用单位_单位英文名称",
             "yzzzdw_dwmc": "印章制作单位_单位名称",
             "yzzzdw_dwssmzwzmc": "印章制作单位_单位少数民族文字名称",
             "yzzzdw_dwywmc": "印章制作单位_单位英文名称",
             "yzsydw_tyshxydm": "印章使用单位_统一社会信用代码"
         },
         "districtCode": "行政区划代码"
     }
     */
    public UploadRecordInfosRequestData() {
    }

    public UploadRecordInfosRequestData(String sealEncCert, String sealSignCert, SealData sealData, String districtCode) {
        this.sealEncCert = sealEncCert;
        this.sealSignCert = sealSignCert;
        this.sealData = sealData;
        this.districtCode = districtCode;
    }

    public String getSealEncCert() {
        return sealEncCert;
    }

    public void setSealEncCert(String sealEncCert) {
        this.sealEncCert = sealEncCert;
    }

    public String getSealSignCert() {
        return sealSignCert;
    }

    public void setSealSignCert(String sealSignCert) {
        this.sealSignCert = sealSignCert;
    }

    public SealData getSealData() {
        return sealData;
    }

    public void setSealData(SealData sealData) {
        this.sealData = sealData;
    }

    public String getDistrictCode() {
        return districtCode;
    }

    public void setDistrictCode(String districtCode) {
        this.districtCode = districtCode;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"sealEncCert\":\"")
                .append(sealEncCert).append('\"');
        sb.append(",\"sealSignCert\":\"")
                .append(sealSignCert).append('\"');
        sb.append(",\"sealData\":")
                .append(sealData);
        sb.append(",\"districtCode\":\"")
                .append(districtCode).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
